package org.springframework.test.configuration;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * [简要描述]:
 * [详细描述]:
 *
 * @author ZouHaiBo
 * @version 1.0, 2021/8/4 10:25
 * @since JDK 1.8
 */
//@Component
@Configuration
public class ConfigurationBean
{

	@Bean
	public Demo demo() {
		return new Demo();
	}

	@Bean
	public Demo1 demo1(){
		Demo demo = demo();
		System.out.println(demo);
		return new Demo1();
	}


}
